package co.yixiang.yshop.module.product.convert.storeproductassure;

import co.yixiang.yshop.framework.common.pojo.PageResult;
import co.yixiang.yshop.module.product.controller.admin.storeproductassure.vo.StoreProductAssureCreateReqVO;
import co.yixiang.yshop.module.product.controller.admin.storeproductassure.vo.StoreProductAssureExcelVO;
import co.yixiang.yshop.module.product.controller.admin.storeproductassure.vo.StoreProductAssureRespVO;
import co.yixiang.yshop.module.product.controller.admin.storeproductassure.vo.StoreProductAssureUpdateReqVO;
import co.yixiang.yshop.module.product.dal.dataobject.storeproductassure.StoreProductAssureDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 商品保障服务 Convert
 *
 * @author admin
 */
@Mapper
public interface StoreProductAssureConvert {

    StoreProductAssureConvert INSTANCE = Mappers.getMapper(StoreProductAssureConvert.class);

    StoreProductAssureDO convert(StoreProductAssureCreateReqVO bean);

    StoreProductAssureDO convert(StoreProductAssureUpdateReqVO bean);

    StoreProductAssureRespVO convert(StoreProductAssureDO bean);

    List<StoreProductAssureRespVO> convertList(List<StoreProductAssureDO> list);

    PageResult<StoreProductAssureRespVO> convertPage(PageResult<StoreProductAssureDO> page);

    List<StoreProductAssureExcelVO> convertList02(List<StoreProductAssureDO> list);

}
